package com.tourism.service;

import com.github.pagehelper.PageInfo;
import com.tourism.entity.OrderInfo;
import com.tourism.entity.OrderPayInfo;
import com.tourism.entity.OrderQuery;
import com.tourism.exception.GlobalException;

public interface OrderInfoService {
    /**
     * 根据id查询订单信息
     *
     * @param id
     * @return
     */
    OrderInfo getOrderInfoById(Long id);
    /**
     * 根据id删除订单
     *
     * @param id
     * @return
     */
    Boolean deleteOrderInfoById(Long id);

    /**
     * 新增订单
     *
     * @param user
     * @return
     */
    boolean addOrderInfo(OrderInfo user) throws GlobalException;


    /**
     * 分页查询订单列表
     *
     * @param OrderInfoQuery
     * @return
     */
    PageInfo<OrderInfo> getOrderInfoList(OrderQuery OrderInfoQuery);
    /**
     * 更新支付状态
     *
     * @param orderPayInfo
     * @return
     */
    boolean updateOrderPayInfo(OrderPayInfo orderPayInfo);
}
